<?php

namespace App\Model;
use Hyperf\Database\Model\SoftDeletes;

class Cart extends Model {
    protected $table = 'cart';
    // use SoftDeletes;

    protected $fillable = [
        'good_id',
        'title',
        'user_id',
        'amount',
    ];

    public function good() {
        return $this->belongsTo(Good::class);
    }
}